import {createRouter,createWebHistory} from 'vue-router'
import Login from '../components/Login.vue'
import Index from '../components/Index.vue'
import WordTest from '../components/Index/WordTest.vue'
import WordInput from '../components/Index/WordInput.vue'
import WordManage from '../components/Index/WordManage.vue'
const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/login',
            component:Login,
            name:"Login"

        },
        {
            path:"/",
            alias:['/index'],
            component:Index,
            name:"Index",
            children:[
                {
                    path:'wordtest',
                    component:WordTest
                },{
                    path:'wordinput',
                    component:WordInput
                },{
                    path:'wordmanage',
                    component:WordManage
                }
            ]
        }

    ]
})

export default router;
